﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebRaoVat.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <!--Begin khung thu 1 cua cot trai-->
    <div id="box-pro-highlights">
        <div class="content">
                <img src="images_quang_cao/imageAdvertising.gif" alt="" />
        </div>
    </div>
    <!--End khung thu 1 cua cot trai-->
    <!--Begin khung thu 2 cua cot trai-->
    <div id="box-pro-highlights">
        <div class="box-pro-highlights-header">
            <a style="color: #034b8a">Sản phẩm nổi bật</a>
        </div>
        <div class="content">
            <table cellpadding="0" cellspacing="0" class="tblEbInfo">
                <tbody>
                    <tr>
                        <asp:DataList ID="DataList1" runat="server" DataKeyField="TenTinRaoVat" RepeatColumns="3"
                            RepeatDirection="Horizontal" OnItemDataBound="DataList1_ItemDataBound">
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" Height="100px" ImageUrl='<%# Eval("Thumbnail", "~/{0}") %>'
                                    Width="100px" />
                                <br />
                                <asp:HyperLink ID="HyperLink1" runat="server" Style="text-decoration: none; color: #0034b8;
                                    font-size: small" NavigateUrl='<%# Eval("MaTinRaoVat", "~/ChiTietTinRao.aspx?MaTin={0}") %>'
                                    Text='<%# Eval("TenTinRaoVat") %>' ToolTip='<%# Eval("TenTinRaoVat") %>' Width="200px"></asp:HyperLink>
                                <asp:Label ID="GiaTienLabel" runat="server" Text='<%# Eval("GiaTien", "{0} VNĐ") %>'
                                    Style="color: Red; font-size: medium" />
                                <br />
                                <br />
                                <br />
                            </ItemTemplate>
                        </asp:DataList>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RAOVATConnectionString %>"
                            SelectCommand="SELECT [TenTinRaoVat], [Thumbnail], [GiaTien] FROM [TINRAOVAT] WHERE ([Deleted] = @Deleted) ORDER BY [ThoiGianUp] DESC">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="0" Name="Deleted" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </tr>
                </tbody>
            </table>
            <table>
                <tbody>
                    <tr>
                        <td align="center">
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Trang 
                                đầu</asp:LinkButton>
                            &nbsp;
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">Trang 
                                trước</asp:LinkButton>&nbsp;&nbsp;
                        </td>
                        <td align="center" valign="middle">
                            <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                OnItemDataBound="dlPaging_ItemDataBound">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                        CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                        <td align="center">
                            &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                OnClick="lbtnNext_Click">Trang tiếp</asp:LinkButton>
                        </td>
                        <td align="center">
                            &nbsp;
                            <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Trang 
                                cuối</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="center" style="height: 30px" valign="middle">
                            <asp:Label ID="lblPageInfo" runat="server"></asp:Label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!--End khung thu 2 cua cot trai-->
    <!--Begin khung thu 3 cua cot trai-->
    <div id="box-pro-highlights">
        <div class="box-pro-highlights-header">
            <a href="###" target="_blank" class="no-hover">Thông tin từ FORWARD</a>
        </div>
        <div class="content">
        </div>
    </div>
    <!--End khung thu 3 cua cot trai-->
</asp:Content>
